* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #efefef;
    font-family: "微软雅黑";
}

h4 {
    font-weight: normal;
}

ul,
li {
    list-style: none;
}

.header {
    width: 100%;
    height: 50px;
    line-height: 50px;
    background: #76b9c6;
}

.header .icon {
    display: inline-block;
    font-size: 26px;
    color: #fff;
}

.header .icon-box {
    font-size: 0;
    position: relative;
    float: left;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    margin-right: 10px;
    cursor: pointer;
}

.shadow {
    -webkit-box-shadow: 0 -6px 40px rgba(0, 0, 0, .4);
    -moz-box-shadow: 0 -6px 40px rgba(0, 0, 0, .4);
    box-shadow: 0 -6px 40px rgba(0, 0, 0, .4);
    border-top: 2px solid #fff;
}

/*动画开始*/

.header .icon:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    background-image: -webkit-radial-gradient(center center, farthest-side circle, rgba(26, 175, 93, 0) 70%, #f5f5f5 100%);
    background-image: -moz-radial-gradient(center center, farthest-side circle, rgba(26, 175, 93, 0) 70%, #f5f5f5 100%);
    background-image: -o-radial-gradient(center center, farthest-side circle, rgba(26, 175, 93, 0) 70%, #f5f5f5 100%);
    background-image: radial-gradient(center center, farthest-side circle, rgba(26, 175, 93, 0) 70%, #f5f5f5 100%);
    border: 1px solid #fff;
    animation: wave 3s 1s infinite linear;
    zoom: 1;
    filter: alpha(opacity=0);
    opacity: 0;
    border-radius: 50%;
    background-clip: padding-box;
    box-sizing: border-box;
}

@keyframes wave {
    5% {
        opacity: .6
    }
    27% {
        -webkit-transform: scale(1.8);
        -moz-transform: scale(1.8);
        -ms-transform: scale(1.8);
        transform: scale(1.8);
        opacity: 0
    }
    100% {
        opacity: 0
    }
}

/*动画结束*/

.chatbar {
    position: fixed;
    top: 50px;
    /*right: 0;*/
    left: 0;
    bottom: 0;
    /*display: none;*/
    width: 450px;
    background: #fff;
    -webkit-box-shadow: -3px 0 3px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: -3px 0 3px rgba(0, 0, 0, 0.1);
    box-shadow: -3px 0 3px rgba(0, 0, 0, 0.1);
}

.chatbar-box {
    position: relative;
    height: 100%;
}

.chatbar-contacts {
    position: absolute;
    top: 0;
    width: 100%;
    bottom: 0;
    background: #fff;
}

.chatbar-messages {
    position: absolute;
    top: 0;
    width: 100%;
    bottom: 0;
    background: #f3f3f3;
    transform: translate3d(0, 0, 0);
    transition: all 0.5s;
}

.contacts-search-box {
    position: relative;
    border-bottom: 1px solid #ccc;
}

.contacts-search-box .search-text {
    width: 100%;
    height: 40px;
    color: #999;
    line-height: 40px;
    padding-left: 48px;
    box-sizing: border-box;
    border: none;
    outline: none;
}

.contacts-search-box i {
    position: absolute;
    left: 20px;
    top: 13px;
    color: #0073c6;
    font-size: 14px;
    font-weight: bold;
}

.chatbar-contacts-uls {
    position: absolute;
    width: 100%;
    top: 41px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: auto;
}

.chatbar-contacts-uls li {
    height: 35px;
    padding: 2px;
    position: relative;
    cursor: pointer;
}

.chatbar-contacts-uls li:hover, .chatbar-contacts-uls li.msg_active {
    background: #D7F38B;
}

.chatbar-contacts-uls li i {
    position: absolute;
    top: 50%;
    left: 20px;
    margin-top: -12px;
    color: #0073c6;
    font-size: 18px;
}

.chatbar-contacts-uls li i.new_msg {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FF0000;
    display: inline-block;
    left: 60%;
    margin-top: -5px;
}

.chatbar-contacts-uls li i.couple {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #ffacdc;
    display: inline-block;
    left: 10%;
    margin-top: -8px;
}

.messages-text-uls {
    height: 110px;
}

.messages-text-uls.msg_image {
    height: 290px;
}

.chatbar-contacts-uls li p {
    height: 100%;
    line-height: 30px;
    padding-left: 60px;
    font-size: 13px;
}

.chatbar-contacts-uls li p img.emojione {
    width: 20px;
    height: 20px;
}

.messages-title {
    position: relative;
    height: 80px;
    background: #f3f3f3;
    padding: 10px 20px;
    border-bottom: 1px solid #e2e2e2;
}

.messages-title i:nth-child(1) {
    position: absolute;
    top: 50%;
    left: 20px;
    margin-top: -14px;
    font-size: 25px;
    color: #0073c6;
}

.messages-title h4 {
    width: 100%;
    height: 80%;
    line-height: 60px;
    padding-left: 56px;
}

.messages-title span {
    font-size: 10px;
}

.messages-title a {
    color: #000;
}

h4.messages-text-h4-my {
    text-align: right;
    float: right;
    margin-top: 10px;
    width: 60%;
}

h4.messages-text-h4-other {
    text-align: left;
    width: 60%;
}

.messages-title i.return-icon {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 20px;
    color: #0073c6;
    cursor: pointer;
}

.messages-text {
    position: absolute;
    top: 81px;
    left: 0;
    right: 0;
    bottom: 174px;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #ccc;
    overflow-y: auto;
}

.messages-box {
    position: absolute;
    bottom: 60px;
    left: 5%;
    width: 90%;
    height: 100px;
    border: 1px solid #ccc;
    background: #fff;
    text-align: center;
}

.messages-box textarea {
    height: 100%;
    width: 100%;
    border: 1px solid #ddd;
    padding: 5px;
}

.messages-box input[type=button] {
    display: inline-block;
    width: 100px;
    height: 32px;
    line-height: 32px;
    color: #fff;
    border: none;
    outline: none;
    margin-top: 10px;
    border-radius: 5px;
    background: #0073c6;
}

.messages-text-lis {
    padding: 10px 15px;
}

.messages-text-lis i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #a0d468;
    display: inline-block;
    margin-right: 15px;
}

.messages-text-lis .time {
    font-size: 12px;
    color: #999;
    margin-left: 15px;
}

.messages-text-lis p {
    position: relative;
    width: 60%;
    margin-top: 15px;
    border-radius: 5px;
    background-color: #a0d468;
    color: #fff;
    padding: 5px;
    font-size: 14px;
    line-height: 26px;
}

.messages-text-lis p.messages-text-p-my {
    float: right;
    text-align: right;
}

.messages-text-lis p img.emojione {
    width: 25px;
    height: 25px;
}

.messages-text-lis p:before {
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    content: '';
    top: -14px;
    border-top-width: 0;
    border-bottom-color: #a0d468;
    border-width: 7px;
}

.messages-text-lis p.messages-text-p-other:before {
    left: 10px;
}

.messages-text-lis p.messages-text-p-my:before {
    right: 10px;
}

.messages-text-lis p.msg_image {
    width: 35%;
}

.message-tooltip {
    position: fixed;
    bottom: 155px;
    left: 450px;
    width: 150px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 14px;
    color: #d8534f;
    background: #fae5e5;
    border: 1px solid #d8534f;
    border-radius: 5px;
    padding: 0 5px;
}

.message-tooltip:before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-left: 1px solid #d8534f;
    border-bottom: 1px solid #d8534f;
    transform: rotate(-45deg);
    background: #fae5e5;
    bottom: -6px;
    left: 50%;
    margin-left: -5px;
}
